#-----------------------------------------------------------------------------
# 库文件
#-----------------------------------------------------------------------------
import argparse

from numpy import dtype

#-----------------------------------------------------------------------------
# 变量声明
#-----------------------------------------------------------------------------
parse = argparse.ArgumentParser()

# 在此处定义需要的参数
parse.add_argument('--file_name', '-fn', required=True, help="the log file name(and path)")
parse.add_argument('--image_path', '-ip', required=False, help="the path of the images to be exported to")
parse.add_argument('--skiprows', '-skr', required=False, type=int, help="the rows before the first image to skip")
parse.add_argument('--delimiter', '-deli', required=False,  help="the delimiter sign to be used, COMMA is the default sign")
parse.add_argument('--distance', '-d', required=False, type=int, help="the rows between the image")
parse.add_argument('--image_number', '-in', required=False, type=int, help="the image number to be decoded with")

# 此处会解析参数
args = parse.parse_args()

# 使用方法
# 在需要被使用的地方加一句 from parse_definition import args 即可
